package main

import (
	"github.com/robfig/cron/v3"
	"longmen/server/config/global"
	"longmen/server/internal/services/crawler/sports"
)

func main() {
	global.Initialize("../../../config/app.properties")
	c := cron.New()
	douQiuSpider()
	c.AddFunc("@every 1h", douQiuSpider)
	c.Start()
	select {}
}

//新闻
func douQiuSpider() {
	sports.NewDouQiuSpider().Start()
}
